package com.htj.common;

import lombok.Getter;

import java.io.Serializable;

@Getter
public enum  ResultCodeEnum implements Serializable {
    SUCCESS(200,"成功"),FAIL(201,"失败"),PARAM_ERROR(202,"参数错误"),
    SERVER_ERROR(500,"服务器异常"),LETTER_ERROR(206,"分母不能为零")
    ,TOKEN_ERROR(207,"token异常"),LOGIN_ERROR(208,"账号或密码错误!");
    private int code;
    private String msg;
    ResultCodeEnum(int code,String msg) {
        this.code=code;
        this.msg=msg;
    }
}
